package com.beans;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: fzykd
 * Date: 2022-10-09
 * Time: 10:55
 */

@Component
public class UserComponent {
    @Bean
    public void sayHi(){
        System.out.println("hello Bean1");
    }

    @Bean
    public void say(){
        System.out.println("hello Bean2");
    }

    @Resource
    public UserController userController;

}
